package com.ttj.domain.oracle.gen;

import java.io.Serializable;

public class SuperBModeAction implements Serializable {
    /**
     * 操作ID
     */
    private Integer actionId;

    /**
     * 模块名称
     */
    private String modeName;

    /**
     * 操作名称
     */
    private String actionName;

    /**
     * 描述
     */
    private String description;

    /**
     * ACTION地址
     */
    private String addr;

    private static final long serialVersionUID = 1L;

    /**
     * 操作ID
     */
    public Integer getActionId() {
        return actionId;
    }

    /**
     * 操作ID
     */
    public void setActionId(Integer actionId) {
        this.actionId = actionId;
    }

    /**
     * 模块名称
     */
    public String getModeName() {
        return modeName;
    }

    /**
     * 模块名称
     */
    public void setModeName(String modeName) {
        this.modeName = modeName;
    }

    /**
     * 操作名称
     */
    public String getActionName() {
        return actionName;
    }

    /**
     * 操作名称
     */
    public void setActionName(String actionName) {
        this.actionName = actionName;
    }

    /**
     * 描述
     */
    public String getDescription() {
        return description;
    }

    /**
     * 描述
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * ACTION地址
     */
    public String getAddr() {
        return addr;
    }

    /**
     * ACTION地址
     */
    public void setAddr(String addr) {
        this.addr = addr;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", actionId=").append(actionId);
        sb.append(", modeName=").append(modeName);
        sb.append(", actionName=").append(actionName);
        sb.append(", description=").append(description);
        sb.append(", addr=").append(addr);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperBModeAction other = (SuperBModeAction) that;
        return (this.getActionId() == null ? other.getActionId() == null : this.getActionId().equals(other.getActionId()))
            && (this.getModeName() == null ? other.getModeName() == null : this.getModeName().equals(other.getModeName()))
            && (this.getActionName() == null ? other.getActionName() == null : this.getActionName().equals(other.getActionName()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getAddr() == null ? other.getAddr() == null : this.getAddr().equals(other.getAddr()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getActionId() == null) ? 0 : getActionId().hashCode());
        result = prime * result + ((getModeName() == null) ? 0 : getModeName().hashCode());
        result = prime * result + ((getActionName() == null) ? 0 : getActionName().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getAddr() == null) ? 0 : getAddr().hashCode());
        return result;
    }
}